package demo.cor.instance;

import demo.cor.Filter;
import demo.cor.FilterChain;
import demo.cor.Request;
import demo.cor.Response;

public class MyFilter001 implements Filter {
  
  @Override
  public void init() {
    System.out.println("myFilter001 init");
  }
  
  @Override
  public void doFilter(Request request, Response response, FilterChain filterChain) {
    System.out.println("myFilter001 -- request");
    filterChain.doFilter(request, response);
    System.out.println("myFilter001 -- response");
  }
  
  @Override
  public void destroy() {
    System.out.println("myFilter001 destroy");
  }
}
